package day04;

import java.util.Arrays;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/11
 */
public class OneArrayReverse {
    public static void main(String[] args) {
        int[] arr ={5,11,15,24,36,47,59,66};

        int i = 0;
        int j = arr.length - 1;

        while (i < j) {
            int temp = arr[i];
            arr[i] = arr[j];
            arr[j] = temp;

            i++;
            j--;
        }

        System.out.println(Arrays.toString(arr));
    }
}
